using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class MSG_INSPECT_ARENA_TEAMS_DEF : DefinitionBase
    {

        public override bool Process()
        {
            ResetPosition();
            UInt64 guid = ReadUInt64();
            if (Direction == 1)
            {
                byte Slot = ReadByte();                               // slot (0...2)
                UInt32 id = ReadUInt32();                                 // arena team id
                UInt32 rating = ReadUInt32();                            // rating
                UInt32 games = ReadUInt32();                             // games
                UInt32 wins = ReadUInt32();                              // wins
                UInt32 played = ReadUInt32();                            // played (count of all games, that played...)
                
                if (ClientBuild >= 7799)
                {
                    UInt32 personalrating = ReadUInt32();                                      // 2.3.3 personal rating?
                }
            }
            return Validate();
        }
    }
}

